# coding: utf-8

from common import import_fields
from common.utils import ImportSchema


class ImportUserSchema(ImportSchema):
    com = import_fields.StrField(
        1, required=True, label_name='公司名'
    )
    nickname = import_fields.StrField(
        2, required=True, label_name='姓名'
    )
    addr = import_fields.StrField(
        3, label_name='地址'
    )
    mobile = import_fields.PhoneField(
        5, required=True, label_name='电话'
    )
    prov = import_fields.StrField(9, required=True, label_name='省份')
    city = import_fields.StrField(10, label_name='城市')


class UpdateUserSchema(ImportSchema):

    mobile = import_fields.PhoneField(
        0, required=True, label_name='电话'
    )
    nickname = import_fields.StrField(1, label_name='姓名')
